package ch.ffhs.ks.ui;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class ProgressWindow extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private JLabel progressLabel;
	
	public ProgressWindow(String message)
	{
		
		JPanel rootPanel = new JPanel(new BorderLayout(5,5));
		rootPanel.setBorder(new EmptyBorder(5,5,5,5));
		
		progressLabel = new JLabel(message);
		
		rootPanel.add(progressLabel, BorderLayout.CENTER);
		
		add(rootPanel);
		
		setSize(new Dimension(300, 50));
		setVisible(true);
		
	}
	
	
}
